package com.api.user.service;
import com.api.user.model.MessageRead;
import com.api.core.service.Service;
import com.api.core.response.Result;
import com.api.user.model.MessageRole;

import java.util.List;

/**
 * Created by wanghuiwen on 2021/04/01.
 */
public interface MessageReadService extends Service<MessageRead> {
   Result list(String search, String order, Integer page, Integer size);

   MessageRead getById(Long messageId,Long userId);
   List<MessageRead> getByMessageId(Long messageId);

    void updateState(MessageRead messageRead);
}
